package com.wc.AlgoOJ_homework.AlgoOJ_HomeWork1.O_整数范围;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/20 15:21
 * @description http://43.138.190.70:8888/p/LQ1228T
 */
public class Main {
    public static void main(String[] args) {
        int N = 64;
        long[] base = new long[N];
        base[0] = 1;
        for (int i = 1; i < N; i++) {
            base[i] = base[i - 1] * 2;
        }
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while (t-- > 0) {
            int x = sc.nextInt();
            System.out.println(base[x] - 1);
        }
    }
}
